<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="../../../css/admin.css"/>
<script type="text/javascript" src="../../../js/jquery.js"></script>
<script type="text/javascript" src="../../../js/changebgcolor.js"></script>
<script type="text/javascript" src="../../../js/calendar.js"></script>
<script type="text/javascript" src="../js/merchandise_init.js"></script>
<script type="text/javascript" src="js/edit_merchandise.js"></script>
<script type="text/javascript">
window.onload = function (){
	document.title = '物品信息';
	create_parent_type_list();
	selectMerchandiseUnit();

	$('#merchandise_id').val('');

	var addstr = document.URL;
	var merchandise_id = addstr.split('?')[1];
	if(merchandise_id>0){
		selectMerchandise(merchandise_id);
	}
};
function on_reset(){
	var merchandise_id = $('#merchandise_id').val();
	selectMerchandise(merchandise_id);
};
</script>
</head>

<body>
<form action="javascript:void(0)">
<div style="position:absolute; left:50%; margin-top:2px; margin-left:-115px; text-align:center;">
  <span style="color:red;">注：红色信息为必要信息</span>
  <input type="hidden" id="merchandise_id" />
  <table class="list" border="0" cellspacing="1" width="230" >
    <tr><td class="list" width="60" style="color:red;" >编号</td><td class="list" width="" ><input  style="width:158px;" type="text" id="merchandise_cid" /></td></tr>
    <tr><td class="list" width="60" style="color:red;" >名称</td><td class="list" width="" ><input  style="width:158px;" type="text" id="merchandise_name" /></td></tr>
    <tr><td class="list" width="60" style="color:red;" >父类</td><td class="list" width="" ><select style="width:100%;"  id="parent_type" onchange="selectMerchandiseType()" ></select></td></tr>
    <tr><td class="list" width="60" style="color:red;" >类别</td><td class="list" width="" ><select style="width:100%;"  id="merchandise_type" ></select></td></tr>
    <tr><td class="list" width="60" style="color:red;" >规格</td><td class="list" width="" ><input  style="width:158px;" type="text" id="merchandise_norm" /></td></tr>
    <tr><td class="list" width="60" style="color:red;" >单位</td><td class="list" width="" ><select style="width:100%;"  id="merchandise_unit" ></select></td></tr>
    <tr><td class="list" width="60" >低预警数量</td><td class="list" width="" ><input  style="width:158px;" type="text" id="merchandise_low_alert" value="0" /></td></tr>
    <tr><td class="list" width="60" >高预警数量</td><td class="list" width="" ><input  style="width:158px;" type="text" id="merchandise_height_alert" value="0" /></td></tr>
    <tr><td class="list" width="60" >备注</td><td class="list" width="" ><input  style="width:158px;" type="text" id="merchandise_memo" /></td></tr>
    <tr><td class="list" colspan="2" ><input type="button" value="重置" onclick="on_reset()" />&nbsp;&nbsp;&nbsp;<input type="button" value="提交" class="submit" onclick="saveOrUpdate()" /></td></tr>  
  </table>
</div>
</form>
</body>
</html>
